

#include <input_manager.h>
#include <pthread.h>
#include <stdio.h>
#include <semaphore.h>
#include <string.h>




int main (int argc, char ** argv)
{
	inputEvent getinput;
	int ret;


	Inputinit();
	initdeviceInput();



	while(1)
	{
		ret = GetALLInputEvent(&getinput);
		if(ret>0)
		{
			printf("GetInputEvent err \n");
			return -1;

		}
		else
		{
			printf("getinput.type %d\n",getinput.type);
			if(getinput.type == type_net_event)
			{

				printf("data :%s \n",getinput.net_str);
			}
			else if(getinput.type ==type_touch_event)
			{
		
				printf("X:%x \n",getinput.x);
				printf("Y:%x \n",getinput.y);
				printf("pressure:%x \n",getinput.pressure);
			}

		}
	}
	
}


























































